package com.statistics;

import org.apache.commons.math3.stat.Frequency;
import org.junit.Test;

public class FrequencyDistributions {
	@Test
	public void test(){
		Frequency f = new Frequency(String.CASE_INSENSITIVE_ORDER);
		f.addValue("花");
		f.addValue("花");
		f.addValue("oNe");
		f.addValue("Z");
		System.out.println(f.getCount("花"));  // displays 2
		System.out.println(f.getCount("z"));  // displays 1
	}
}
